//
//  KFResource+Ext.swift
//  iPhone
//
//  Created by Toj on 5/31/23.
//

import Foundation
import Kingfisher

extension String: Resource {
    
    public var cacheKey: String {
        return self
    }
    
    public var downloadURL: URL {
        guard let url = URL(string: self) else {
            if #available(iOS 16.0, *) {
                return URL(filePath: "")
            } else {
                return URL(fileURLWithPath: "")
            }
        }
        return url
    }
}
